from django.urls import path


from .views import ProfileViewset
from .models import app_static_path
from django.views.static import serve
from rest_framework import routers


router = routers.SimpleRouter()

router.register('profile', ProfileViewset, 'profile')

urlpatterns = [
    path("static/<path:path>", serve, {"document_root":app_static_path})
]

urlpatterns += router.urls